python/xc: do not crash xend if /proc/xen/privcmd cannot be opened
authorIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 22 Jun 2010 15:00:08 +0000 (16:00 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Tue, 22 Jun 2010 15:00:08 +0000 (16:00 +0100)
commitb9ae83b6e2a50a21a6fe16273218e3403d053fc7
treed08131aad69b898159deaa6ef52ee0070b2531a8
parent6f4e9be827564fc490ecb37c98910a0bee845730
python/xc: do not crash xend if /proc/xen/privcmd cannot be opened

If /proc/xen/privcmd cannot be opened,
start xend occurs Segmentation fault.
Add check to fix it.

Signed-off-by: Yu Zhiguo <yuzg@cn.fujitsu.com>
tools/python/xen/lowlevel/xc/xc.c